# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-coreprimevelte
pkgdesc="Samsung Galaxy Core Prime VE LTE"
pkgver=4
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="dtc
	linux-samsung-coreprimevelte
	u-boot-coreprimevelte
	postmarketos-base
	mkbootimg
	u-boot-tools
	pxa-mkbootimg"
makedepends="devicepkg-dev"
_pmb_recommends="firmware-samsung-pxa1908"
source="
	boot-image.its
	deviceinfo
	modules-initfs
	90-mlan-to-wlan.rules
"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname

	install -Dm644 "$srcdir"/90-mlan-to-wlan.rules \
		-t "$pkgdir"/usr/lib/udev/rules.d

	mkdir -p "$pkgdir"/usr/share/u-boot/coreprimevelte/
	install -Dm644 "$srcdir"/boot-image.its \
		-t "$pkgdir"/usr/share/u-boot/coreprimevelte/
}

sha512sums="
2f19e7b805af1f58b7689f45990bf8cb97e902eec373e9420487ca9608cfd650eb37011d58597c8b8255bc6bc50b763711c57a5c711ead06b213c1df658d4b9a  boot-image.its
82960dd68320abf6f24bd6e6a4629669617173be417d7ae1a1580f7c1239992a61829ed479e3e7cf2acc8e47cb3916afa2727694ac56f97cc82394b75bcc5713  deviceinfo
25f0ce5118e51dc87c9a38f23eb25106619310ca4be969dca62992840fde5b1a7b65c2be617abe3821cc78c68eca9fbc39c2f580c0767aaa44bd7052f629ddbf  modules-initfs
d51facbaa99f69964786e770dc8ed500bfb2609353a25aa344701c851131cc421ef3a2663fe4422a21a5f38e01f0c34235fa4fad75739fb614109a2fb268db8a  90-mlan-to-wlan.rules
"
